<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PU2CLR AKC695X Arduino Library: Basic Methods</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">PU2CLR AKC695X Arduino Library
   &#160;<span id="projectnumber">1.0.2</span>
   </div>
   <div id="projectbrief">This is an Arduino Library to control the AKC695X / M695X DSP radio devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group___g_a03.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Basic Methods</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga943ec28389bad1988124dd0f04c9b687"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#ga943ec28389bad1988124dd0f04c9b687">AKC695X::reset</a> ()</td></tr>
<tr class="memdesc:ga943ec28389bad1988124dd0f04c9b687"><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the system.  <a href="group___g_a03.html#ga943ec28389bad1988124dd0f04c9b687">More...</a><br /></td></tr>
<tr class="separator:ga943ec28389bad1988124dd0f04c9b687"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae472084d592c6b814d7a6d72bab5af05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#gae472084d592c6b814d7a6d72bab5af05">AKC695X::setI2CBusAddress</a> (int <a class="el" href="class_a_k_c695_x.html#ab7cd32a73bfe5345422dbebcd6b54ca7">deviceAddress</a>)</td></tr>
<tr class="memdesc:gae472084d592c6b814d7a6d72bab5af05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the I2C bus device address.  <a href="group___g_a03.html#gae472084d592c6b814d7a6d72bab5af05">More...</a><br /></td></tr>
<tr class="separator:gae472084d592c6b814d7a6d72bab5af05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1da8ed0e900d063c21b73b51d9310e60"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#ga1da8ed0e900d063c21b73b51d9310e60">AKC695X::setup</a> (int reset_pin, uint8_t crystal_type)</td></tr>
<tr class="memdesc:ga1da8ed0e900d063c21b73b51d9310e60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receiver startup.  <a href="group___g_a03.html#ga1da8ed0e900d063c21b73b51d9310e60">More...</a><br /></td></tr>
<tr class="separator:ga1da8ed0e900d063c21b73b51d9310e60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaa883afce133a14c97aa938a60b41e0a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a">AKC695X::setup</a> (int reset_pin)</td></tr>
<tr class="memdesc:gaaa883afce133a14c97aa938a60b41e0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Receiver startup.  <a href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a">More...</a><br /></td></tr>
<tr class="separator:gaaa883afce133a14c97aa938a60b41e0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf156fb3c65b4bfc68a977f4586ae23a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#gaf156fb3c65b4bfc68a977f4586ae23a6">AKC695X::powerOn</a> (uint8_t fm_en, uint8_t tune, uint8_t mute, uint8_t seek, uint8_t seekup)</td></tr>
<tr class="memdesc:gaf156fb3c65b4bfc68a977f4586ae23a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Power the device on.  <a href="group___g_a03.html#gaf156fb3c65b4bfc68a977f4586ae23a6">More...</a><br /></td></tr>
<tr class="separator:gaf156fb3c65b4bfc68a977f4586ae23a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaffff7bd58909a00d6a461f4a325ab396"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#gaffff7bd58909a00d6a461f4a325ab396">AKC695X::setRegister</a> (uint8_t reg, uint8_t parameter)</td></tr>
<tr class="memdesc:gaffff7bd58909a00d6a461f4a325ab396"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a given register with a given value.  <a href="group___g_a03.html#gaffff7bd58909a00d6a461f4a325ab396">More...</a><br /></td></tr>
<tr class="separator:gaffff7bd58909a00d6a461f4a325ab396"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga771f5b0ed1750f9b221f5240d3301d5a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#ga771f5b0ed1750f9b221f5240d3301d5a">AKC695X::getRegister</a> (uint8_t reg)</td></tr>
<tr class="memdesc:ga771f5b0ed1750f9b221f5240d3301d5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a given register content.  <a href="group___g_a03.html#ga771f5b0ed1750f9b221f5240d3301d5a">More...</a><br /></td></tr>
<tr class="separator:ga771f5b0ed1750f9b221f5240d3301d5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga860660a84657a9ee209eb6f9459447de"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_a03.html#ga860660a84657a9ee209eb6f9459447de">AKC695X::setCrystalType</a> (uint8_t crystal)</td></tr>
<tr class="memdesc:ga860660a84657a9ee209eb6f9459447de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the kind of Crystal.  <a href="group___g_a03.html#ga860660a84657a9ee209eb6f9459447de">More...</a><br /></td></tr>
<tr class="separator:ga860660a84657a9ee209eb6f9459447de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>SI47XX Arduino Library implementation</p>
<p>This is an Arduino library for the <a class="el" href="class_a_k_c695_x.html">AKC695X</a>, BROADCAST RECEIVER, IC family. <br  />
 It works with I2C protocol and can provide an easier interface for controlling the <a class="el" href="class_a_k_c695_x.html">AKC695X</a> devices.<br  />
</p>
<p>This library was built based on <a href="http://maximradio.altervista.org/akc6955/AKC6955-datasheet-english.pdf">AKC6955 stereo FM / TV / MW / SW / LW digital tuning radio</a> document from "AKC technology". It also intend to be used on <b>all members of the <a class="el" href="class_a_k_c695_x.html">AKC695X</a> family</b> respecting, of course, the features available for each IC version.</p>
<p>This library can be freely distributed using the MIT Free Software model. <a href="https://pu2clr.github.io/AKC695X/#mit-license">Copyright (c) 2019 Ricardo Lima Caratti</a>. <br  />
 Contact: <a href="#" onclick="location.href='mai'+'lto:'+'pu2'+'cl'+'r@g'+'ma'+'il.'+'co'+'m'; return false;">pu2cl<span style="display: none;">.nosp@m.</span>r@gm<span style="display: none;">.nosp@m.</span>ail.c<span style="display: none;">.nosp@m.</span>om</a> </p>
<h1><a class="anchor" id="GA03"></a>
Basic</h1>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga943ec28389bad1988124dd0f04c9b687"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga943ec28389bad1988124dd0f04c9b687">&#9670;&nbsp;</a></span>reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Resets the system. </p>
<p>This function can be used to reset the <a class="el" href="class_a_k_c695_x.html">AKC695X</a> device. ypu can also use the RTS pin of your MCU.</p>
<p>In this case, the RESET pin have to be set to -1. This setup can be configured calling <a class="el" href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a" title="Receiver startup.">AKC695X::setup</a> method.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a" title="Receiver startup.">setup</a> </dd></dl>

<p class="reference">References <a class="el" href="class_a_k_c695_x.html#a53464dde83a8625917655865af8ef53d">AKC695X::resetPin</a>.</p>

<p class="reference">Referenced by <a class="el" href="group___g_a03.html#ga1da8ed0e900d063c21b73b51d9310e60">AKC695X::setup()</a>.</p>

</div>
</div>
<a id="gae472084d592c6b814d7a6d72bab5af05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae472084d592c6b814d7a6d72bab5af05">&#9670;&nbsp;</a></span>setI2CBusAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::setI2CBusAddress </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>deviceAddress</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the I2C bus device address. </p>
<p>You do not need use this function if your i2c device address is 0x10 (default value) <br  />
</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">deviceAddress</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="reference">References <a class="el" href="class_a_k_c695_x.html#ab7cd32a73bfe5345422dbebcd6b54ca7">AKC695X::deviceAddress</a>.</p>

</div>
</div>
<a id="ga1da8ed0e900d063c21b73b51d9310e60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1da8ed0e900d063c21b73b51d9310e60">&#9670;&nbsp;</a></span>setup() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::setup </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>resetPin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>crystal_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receiver startup. </p>
<p>Use this method to define the MCU (Arduino) RESET pin and the crystal type you are using.</p>
<p>The options for the crystal type is: CRYSTAL_32KHZ (32.768KHz) or CRYSTAL_12MHZ (12MHz).</p>
<p>If you omit the crystal type parameter, will be considered 32.768KHz. Example: </p><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="_a_k_c695_x_8h.html">AKC695X.h</a>&gt;</span></div>
<div class="line"><span class="preprocessor">#define RESET_PIN 12   // set it to -1 if you want to use the RST pin of your MCU.</span></div>
<div class="line"><a class="code" href="class_a_k_c695_x.html">AKC695X</a> radio;</div>
<div class="line"><span class="keywordtype">void</span> <a class="code" href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a">setup</a>() {</div>
<div class="line">   <span class="comment">// Set RESET_PIN to -1 if you are using the Arduino RST pin; Select CRYSTAL_32KHZ or CRYSTAL_12MHZ</span></div>
<div class="line">   <span class="comment">// radio.setup(RESET_PIN); Instead the line below, if you use this line, the crystal type considered will be 32.768KHz.   </span></div>
<div class="line">   radio.<a class="code" href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a">setup</a>(RESET_PIN, <a class="code" href="_a_k_c695_x_8h.html#a74c62040d9bf060c6281703c49412772">CRYSTAL_12MHZ</a>);</div>
<div class="line">   radio.<a class="code" href="group___g_a04.html#gaf77739f861a531dc4c7e6ac5a6cb2713">setFM</a>(0, 870, 1080, 1039, 1); <span class="comment">// Tunes on 103.9MHz, FM, band 0. </span></div>
<div class="line">}</div>
</div><!-- fragment --><dl class="section see"><dt>See also</dt><dd><a class="el" href="group___g_a03.html#ga860660a84657a9ee209eb6f9459447de" title="Sets the kind of Crystal.">setCrystalType</a>, <a class="el" href="group___g_a01.html#unionakc595x__reg2" title="Reg2 (type 0x02 / RW): configure register 2 (default: 0x4A) Address.">akc595x_reg2</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">resetPin</td><td>if &gt;= 0, then you control the RESET. if -1, you are using ths Arduino RST pin. </td></tr>
    <tr><td class="paramname">crystal_type</td><td>if 1 = 32.768KHz (default); 0 = 12MHz </td></tr>
  </table>
  </dd>
</dl>

<p class="reference">References <a class="el" href="group___g_a03.html#ga943ec28389bad1988124dd0f04c9b687">AKC695X::reset()</a>, and <a class="el" href="class_a_k_c695_x.html#a53464dde83a8625917655865af8ef53d">AKC695X::resetPin</a>.</p>

</div>
</div>
<a id="gaaa883afce133a14c97aa938a60b41e0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaa883afce133a14c97aa938a60b41e0a">&#9670;&nbsp;</a></span>setup() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::setup </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>resetPin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Receiver startup. </p>
<p>Use this method to define the MCU (Arduino) RESET. If you call this method the crystal type will be set to 32.768KHz</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">resetPin</td><td>if &gt;= 0, then you control the RESET. if -1, you are using ths MCU RST pin. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf156fb3c65b4bfc68a977f4586ae23a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf156fb3c65b4bfc68a977f4586ae23a6">&#9670;&nbsp;</a></span>powerOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::powerOn </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fm_en</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>tune</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>seek</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>seekup</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Power the device on. </p>
<p>Starts the <a class="el" href="class_a_k_c695_x.html">AKC695X</a> with some parameters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fm_en</td><td>1 = FM mode; 0 = AM mode </td></tr>
    <tr><td class="paramname">tune</td><td>If 1 Trigger tune process. The STC bit is set high when the tune operation completes </td></tr>
    <tr><td class="paramname">mute</td><td>If 1 mute L/R audio </td></tr>
    <tr><td class="paramname">seek</td><td>If 1 Trigger tune process. The STC bit is set high when the tune operation completes </td></tr>
    <tr><td class="paramname">seekup</td><td>Seek direction control bit. 0 = Seek down; 1 = Seek up </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaffff7bd58909a00d6a461f4a325ab396"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaffff7bd58909a00d6a461f4a325ab396">&#9670;&nbsp;</a></span>setRegister()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::setRegister </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>parameter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a given register with a given value. </p>
<p>It is a basic function to deal with the <a class="el" href="class_a_k_c695_x.html">AKC695X</a> devices </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reg</td><td>register number to be written (only for RW type registers) </td></tr>
    <tr><td class="paramname">parameter</td><td>value to be written in the register </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga771f5b0ed1750f9b221f5240d3301d5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga771f5b0ed1750f9b221f5240d3301d5a">&#9670;&nbsp;</a></span>getRegister()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t AKC695X::getRegister </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>reg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets a given register content. </p>
<p>It is a basic function to get a value from a given <a class="el" href="class_a_k_c695_x.html">AKC695X</a> device register </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reg</td><td>register number to be read (0 ~ 26) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the register content </dd></dl>

</div>
</div>
<a id="ga860660a84657a9ee209eb6f9459447de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga860660a84657a9ee209eb6f9459447de">&#9670;&nbsp;</a></span>setCrystalType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void AKC695X::setCrystalType </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>crystal</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the kind of Crystal. </p>
<p>This method sets the Crystal type you are using in your circuit.</p>
<p>The valid crystal type are 12MHz or 32.768Khz</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">crystal</td><td>0 = 12MHz; 1 = 32.768KHz </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclass_a_k_c695_x_html"><div class="ttname"><a href="class_a_k_c695_x.html">AKC695X</a></div><div class="ttdef"><b>Definition:</b> AKC695X.h:438</div></div>
<div class="ttc" id="agroup___g_a04_html_gaf77739f861a531dc4c7e6ac5a6cb2713"><div class="ttname"><a href="group___g_a04.html#gaf77739f861a531dc4c7e6ac5a6cb2713">AKC695X::setFM</a></div><div class="ttdeci">void setFM(uint8_t akc695x_fm_band, uint16_t minimum_freq, uint16_t maximum_freq, uint16_t default_frequency, uint8_t default_step)</div><div class="ttdoc">Sets the AKC695X to FM mode.</div><div class="ttdef"><b>Definition:</b> AKC695X.cpp:482</div></div>
<div class="ttc" id="a_a_k_c695_x_8h_html"><div class="ttname"><a href="_a_k_c695_x_8h.html">AKC695X.h</a></div></div>
<div class="ttc" id="agroup___g_a03_html_gaaa883afce133a14c97aa938a60b41e0a"><div class="ttname"><a href="group___g_a03.html#gaaa883afce133a14c97aa938a60b41e0a">AKC695X::setup</a></div><div class="ttdeci">void setup(int reset_pin)</div><div class="ttdoc">Receiver startup.</div><div class="ttdef"><b>Definition:</b> AKC695X.cpp:92</div></div>
<div class="ttc" id="a_a_k_c695_x_8h_html_a74c62040d9bf060c6281703c49412772"><div class="ttname"><a href="_a_k_c695_x_8h.html#a74c62040d9bf060c6281703c49412772">CRYSTAL_12MHZ</a></div><div class="ttdeci">#define CRYSTAL_12MHZ</div><div class="ttdef"><b>Definition:</b> AKC695X.h:26</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
